﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace The_Last_Knights.GUI
{
    public class ContentForm: Groupbox
    {
        #region Attributes
        protected Groupbox _container;
        protected Border _border;
#endregion

        #region Properties
        public Border Border
        {
            get { return _border; }
            set { _border = value; }
        }
        
        public Groupbox Container
        {
            get { return _container; }            
        }
#endregion

        public ContentForm(Game game, string ID, Vector2 pos, Vector2 size, Texture2D background, Border border, Groupbox container) 
            : base(game, ID, pos, size, background)
        {
            _border = border;
            _container = container;
        }

        public override void Update(GameTime gameTime)
        {
            _container.Update(gameTime);
            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);            
            _container.Draw(gameTime);
            _border.Draw(gameTime);
        }
    }
}
